<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>OFFICEONLINE</title>
<LINK href="test.css" type=text/css rel=stylesheet>
</head>
<body onbeforeunload="" onunload="">
<TABLE class=TBStyle height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
	  <TBODY>
	  	<TR>
	    	<TD class=TDTitleStyle align=right></TD>
	 	</TR>
	  	<TR height="90%">
	   		<TD class=TDTitleStyle vAlign=top align=right width = "10%">
				<input type="button" value="打开本地文档" onClick="return openDoc();"></br>
				<input type="button" value="新建文档" onClick="return newDoc();">
				<input type="button" value="新建word" onClick="return openWord();">
				<input type="button" value="新建Excel" onClick="return openExcel();">
				<input type="button" value="新建PPT" onClick="return openPPT();">
				<input type="button" value="新建Visio" onClick="return openVisio();">
				<input type="button" value="保存文档" onClick="return saveCopyDoc();">
				<input type="button" value="关闭文档" onClick="return closeDoc();">
				<input type="button" value="打开服务器上的文档" onClick="return openServerFile();">
				<input type="button" value="保存到服务器" onClick="return saveFileToServer();">
				<input type="button" value="打印设置" onClick="return printDes();">
				<input type="button" value="打印" onClick="return print();">
				<input type="button" value="打印预览" onClick="return prePrint();">
				<input type="button" value="退出打印预览" onClick="return prePrintExit();">
				<input type="button" value="文件属性" onClick="return attribute();">
				<input type="button" value="文件是否保存" onClick="return isSave();">
				<input type = "button" value="ddd" onClick="return aa();">
	    	</TD>
		    <TD class=TDStyle width="90%" height="100%">
		    	<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 height="100%">
		        	<TBODY>
				    	<TR>
				      		<TD bgColor=menu height="100%">
				       	    	<object classid="clsid:C9BC4DFF-4248-4a3c-8A49-63A7D317F404" 
				       	    			codebase="OfficeControl.cab#version=2,3,2,0"  id="office" name="office" width="100%" height="800">
										<param name="Statusbar" value="-1">
										<param name="BorderStyle" value="1">
										<param name="TitlebarColor" value="white">
										<param name="TitlebarTextColor" value="0">
										<param name="Caption" value="webOffice测试版">
										<param name="IsShowToolMenu" value="true">
										<param name="ToolBars" value="true">
										<param name="IsNoCopy" value="-1">
										<param name="MakerKey" value="86A1BE7CFEC466B6186E5425AFABB417B6016D68"> 
										<param name="ProductKey" value="65F867689D7FF5CD02FBE4AA23764306F715A9E2">  
								</object>
				    		</TD>
				   		 </TR>
		       		 </TBODY>
		      	</TABLE>
		    </TD>
	 	 </TR>
	</TBODY>
</TABLE>
</body>
<script type="text/javascript" language="javascript">
var webOfficeOcx = document.all.office;
function aa() {
alert(office)
}
</script>
</html>